package DSEAO;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import DSDTO.MemberDTO;
import DSEAO.MemberEAOLocal;
import DSEntity.Member;

/**
 * Session Bean implementation class MemberEAO
 */
@Stateless
public class MemberEAO implements MemberEAOLocal {

	@PersistenceContext
    private EntityManager em;
	
    /**
     * Default constructor. 
     */
    public MemberEAO() {
        // TODO Auto-generated constructor stub
    }

    @Override
	public void add(MemberDTO memberDTO) {
		em.persist(new Member(memberDTO));
	}
    
}
